home *** CD-ROM | disk | FTP | other *** search
/ Network PC / Network PC.iso / amiga utilities / communication / internet / amitcp3.0b / src.lha / src / util / letnet / letnet.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-08  |  1.8 KB  |  68 lines

  1. /* $Id: letnet.h,v 1.7 1994/05/02 19:46:15 jraja Exp $
  2.  *
  3.  * letnet.h --- letnet structures and global variables
  4.  *
  5.  * Author: ppessi <Pekka.Pessi@hut.fi>
  6.  *
  7.  * Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  8.  *                  Helsinki University of Technology, Finland.
  9.  *                  All rights reserved.
  10.  *
  11.  * Created      : Sun May 16 19:54:15 1993 ppessi
  12.  * Last modified: Sun Feb 27 01:02:05 1994 ppessi
  13.  *
  14.  * $Log: letnet.h,v $
  15.  * Revision 1.7  1994/05/02  19:46:15  jraja
  16.  * Removed compiler dependent macro definitions, they are now defined in the
  17.  * sys/cdefs.h.
  18.  *
  19.  * Revision 1.6  1994/02/26  23:02:27  ppessi
  20.  * Updated to amitcp/socketbasetags.h
  21.  *
  22.  * Revision 1.5  1994/02/22  03:29:01  ppessi
  23.  * Added a NetPrintFault() for AmITCP 3
  24.  *
  25.  * Revision 1.4  1993/08/12  09:04:00  jraja
  26.  * Changed email address.
  27.  *
  28.  * Revision 1.3  1993/05/26  23:45:32  ppessi
  29.  * Experiment with pr_ExitCode; some resource allocation bugs fixed.
  30.  *
  31.  * Revision 1.2  1993/05/23  17:57:57  ppessi
  32.  * *** empty log message ***
  33.  *
  34.  * Revision 1.1  93/05/18  00:59:19  ppessi
  35.  * Initial revision
  36.  * 
  37.  */
  38.  
  39. struct SocketMessage {
  40.   struct Message sm_Msg;
  41.   LONG           sm_id;
  42.   LONG         sm_retval;    /* non zero errorcode */
  43. };
  44.  
  45. /* Send and receive buffer lenghts */
  46. #define RECBUFLEN 256
  47. #define SENDBUFLEN 256
  48.  
  49. LONG do_sender(void);
  50.  
  51. SAVEDS ASM LONG exitcode(REG(d0) LONG status, REG(d1) LONG exitmessage);
  52.  
  53. #ifdef AMITCP3
  54. #include <amitcp/socketbasetags.h>
  55. /*
  56.  * Multithreaded version of PrintNetFault
  57.  */
  58. #define PrintNetFault(error, banner) do { \ 
  59.   ULONG __pnf_taglist[3]; \
  60.   __pnf_taglist[0] = SBTM_GETVAL(SBTC_ERRNOSTRPTR); \
  61.   __pnf_taglist[1] = (error); \
  62.   __pnf_taglist[2] = TAG_END; \
  63.   SocketBaseTagList((struct TagItem *)__pnf_taglist); \
  64.   Printf("%s: %s\n", (banner), __pnf_taglist[1]); \
  65. } while(0)
  66.  
  67. #endif
  68.